﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WorldConqueror.Libraries.Maths.ExtensionMethods
{
    public static class DoubleExtensions
    {
        public static double ToRadians(this double angle)
        {
            return Math.PI * angle / 180;
        }

        public static double ToDegrees(this double angle)
        {
            return angle * 180 / Math.PI;
        }
    }
}
